package com.ijecorp.media.fmt;

import com.ijecorp.media.audio.AudioFormat;
import com.ijecorp.media.riff.RIFFChunk;



/**
 * @author Miller Lai
 * @since 2007/12/30
 * @see http://ccrma.stanford.edu/courses/422/projects/WaveFormat/
 * @see http://www.sonicspot.com/guide/wavefiles.html

 __________________________
| RIFF WAVE Chunk	       |
|   groupID  = 'RIFF'      |
|   riffType = 'WAVE'      |
|    __________________    |
|   | Format Chunk     |   |
|   |	ckID = 'fmt '  |   |
|   |__________________|   |
|    __________________    |
|   | Sound Data Chunk |   |
|   |	ckID = 'data'  |   |
|   |__________________|   |
|__________________________|
 */
public class WaveFormat extends AudioFormat{
	public static int TYPE_ID = 0x57415645; // WAVE
	
	DataSubChunk dataChunk;
	
	WAVEChunk waveChunk;
	public WaveFormat( int ID, int size, byte[] dtat){
		this.waveChunk = new WAVEChunk(ID, size);
	}
	

}


class WAVEChunk extends RIFFChunk{
	public WAVEChunk(int ID, int size){
		super(ID, size);
	}
}


class DataSubChunk extends RIFFChunk{
	public DataSubChunk(int ID, int size) {
		super(ID, size);
	}
}	


